<?php

class Admin_IndexController extends Zend_Controller_Action
{

	private $usuario;
	
	public function init()
	{
		$this->_helper->layout()->setLayout("admin");
		
		if ( !Zend_Auth::getInstance()->hasIdentity() ) {
			return $this->_helper->redirector->goToRoute( array('module'=>'admin', 'controller' => 'auth'), null, true);
		}

	}

	public function indexAction()
	{
		
		$this->usuario = $_SESSION["Zend_Auth"]["storage"];
		
		$this->view->nomeUsuario = $this->usuario->nome_completo;
	}


}

